jq(function(){
	jq("#toBuyCar").click(function(){
		var name=jq(".pro_des>.des_name>p").html();
		var price=jq(".pro_des>.des_price>b").html().substring(1);
		var color=jq(".pro_des>.des_choice:eq(1) li[class=checked]").text();
		var numberBuy=jq(".pro_des>.des_join #numberBuy").val();
		jq.get("BuyCarServlet","action=addCar&name="+name+"&price="+price+"&color="+color+"&numberBuy="+numberBuy,function(data){
			if(data=="ok"){
				location.href="BuyCar.jsp";
			}
			
		},"text");
	});
	
	
	
});